<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./mockjs/mock-min.js"></script>
</head>

<body>
    <script>
        let link = Mock.Random.image("300x300", "#f2f2f2", "王二狗")
        let link2 = Mock.Random.image("200x200",'#ccc', 'Hello')
        let img1 = new Image()
        img1.src = link
        let img2 = new Image()
        img2.src = link2
        window.onload = () => {
            document.body.appendChild(img1)
            document.body.appendChild(img2)
        }
    </script>

</body>

</html>